package com.zp.field_method07;

public class BooksTest {
    public static void main(String[] args) {
        Books books = new Books();

        String info = books.getBookName();
        System.out.println( info);

        System.out.println("----------------------");

        String bookNameSetBefore = books.getBookName();
        System.out.println(bookNameSetBefore);

        System.out.println("----------------------");

        books.setBookName("三国演义");
        books.getBookName();

        String bookNameSetAfter = books.getBookName();
        System.out.println(bookNameSetAfter);
        System.out.println("----------------------");

        books.setAuthor("罗贯中");
        books.setPublisher("新华出版社");
        books.setPrice(100);

        System.out.println(books.getBooksInfo());
    }
}
